import request from '@/utils/request'
// 添加分类
export function castAdd(data) {
  return request({
    url: '/photoClassify/createOrEdit',
    method: 'post',
    data
  })
}
// 分类列表
export function castList(params) {
  return request({
    url: '/photoClassify/list',
    method: 'get',
    params
  })
}
// 分类删除
export function castDelete(data) {
  return request({
    url: '/photoClassify/delete',
    method: 'post',
    data
  })
}
// 父级分类
export function childList() {
  return request({
    url: '/photoClassify/upList',
    method: 'get'
  })
}